/**
 * 
 */
package org.pjsip.pjsua2.app;

/**
 * @author alonso lee
 *
 */
public class PostToRtpServerData {

	public static final int INVALID_RTP_PORT = -1;
	private String userId; // 用户id
	private String localIp; // 本地WIFI内网地址
	private String networkType; // 当前网络类型
	private String rtpServerIp; // rtp服务器ip
	private int rtpServerPort = INVALID_RTP_PORT; // rtp服务器端口
	private int localPort = 4000; // 本地udp端口，缺省为4000

	/**
	 * 获取用户id
	 * 
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置用户id
	 * 
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 获取本地内网地址
	 * 
	 * @return the localIp
	 */
	public String getLocalIp() {
		return localIp;
	}

	/**
	 * 设置本地内网地址
	 * 
	 * @param localIp
	 *            the localIp to set
	 */
	public void setLocalIp(String localIp) {
		this.localIp = localIp;
	}

	/**
	 * 获取当前网络类型
	 * 
	 * @return the netwokType
	 */
	public String getNetworkType() {
		return networkType;
	}

	/**
	 * 设置当前网络类型
	 * 
	 * @param netwokType
	 *            the netwokType to set
	 */
	public void setNetwokType(String networkType) {
		this.networkType = networkType;
	}

	/**
	 * 获取rtp服务器ip
	 * 
	 * @return the rtpServerIp
	 */
	public String getRtpServerIp() {
		return rtpServerIp;
	}

	/**
	 * 设置rtp服务器ip
	 * 
	 * @param rtpServerIp
	 *            the rtpServerIp to set
	 */
	public void setRtpServerIp(String rtpServerIp) {
		this.rtpServerIp = rtpServerIp;
	}

	/**
	 * 获取rtp服务器端口
	 * 
	 * @return the rtpServerPort
	 */
	public int getRtpServerPort() {
		return rtpServerPort;
	}

	/**
	 * 设置rtp服务器端口
	 * 
	 * @param rtpServerPort
	 *            the rtpServerPort to set
	 */
	public void setRtpServerPort(int rtpServerPort) {
		this.rtpServerPort = rtpServerPort;
	}

	/**
	 * 获取本地udp端口
	 * 
	 * @return the localPort
	 */
	public int getLocalPort() {
		return localPort;
	}

	/**
	 * 
	 * 设置本地udp端口，缺省为4000
	 * 
	 * @param localPort
	 *            the localPort to set
	 */
	public void setLocalPort(int localPort) {
		this.localPort = localPort;
	}

}
